package com.inspector.app.di.network.api

import android.content.Context
import androidx.annotation.Keep
import com.example.commen.net.easyHttp.model.HttpData
import com.example.commen.net.easyHttp.server.ReleaseServer
import com.example.commen.utile.CommonUtils
import com.hjq.http.config.IRequestApi

class APPVersionApi constructor(context: Context) : ReleaseServer(), IRequestApi {
    override fun getApi(): String {
        return "/common/apk/version"
    }

    private var currentVersion: String = CommonUtils.getVersionName(context)
    private var plat: String = "zhihui"


    class QueryAPPVersionInfo : HttpData<QueryAPPVersionInfo.Data>() {
        @Keep
        data class Data(
                var apkDownUrl: String,
                var apkReqUrl: Any,
                var forceUpdate: Boolean,
                var isUpdate: Boolean,
                var minVersion: String,
                var newVersion: String,
                var updateDescription: String
        )
    }
}